<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>九大隐式对象之Request</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    1.获取请求头／请求参数 <br>
    
    <form action="jsp/request.jsp" id="form1" method="get">
    
    用户名：<br/>
    <input type="text" name="name"><br>
    
    性别：<br>
    男：<input type="radio" name="gender" value="男">
    女：<input type="radio" name="gender" value="女">
    <br>
    
    喜欢颜色：<br>
    红：<input type="checkbox" name="color" value="红">
    绿：<input type="checkbox" name="color" value="绿">
    蓝：<input type="checkbox" name="color" value="蓝">
    
    <br>
    
    来自的国家：<br>
    <select name="country">
       <option value="中国">中国</option>
       <option value="美国">美国</option>
       <option value="俄罗斯">俄罗斯</option>
     </select><br>
     
     <input type="submit" value="提交">
     <input type="reset" value="重置">
     
     </form>
    </select>
    
    </form>
    <br>
    2.操作request范围的属性
    设置和获取属性两个方法
    
    <br>
    
    3.执行forward或include
    <br>
    requst还有一个功能就是执行forward和include，也就是jsp提供的include和forword指令。<br>
    request.getRequestDispatcher("/a.jsp").include(request,respone)/.forward(request,respone);
    
    
  </body>
</html>
